package com.ztools.common.model.pc.bo.common;

import com.ztools.common.model.pc.sys.User;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author: seeTools
 * @Date: 2023/4/2  1:36
 * @Version 1.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class WebSocketBo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 消息类型
     */
    private String type;

    /**
     * 聊天消息
     */
    private String message;

    /**
     * 发送消息的对象id
     */
    private Long fromUserId;

    /**
     * 接受消息的对象id
     */
    private Long toUserId;

    /**
     * 用户信息
     */
    private User user;
}
